package model.spring;

import java.io.Serializable;

public abstract class AbstractAddress implements Serializable {

	protected static final long serialVersionUID = 6780532528672421304L;

	protected String name;
	protected String emailaddress;
	protected transient boolean dirty;
	
	public void setName(String name) {
		this.name = name;
	}

	public String getName() {
		return name;
	}

	public void setEmailaddress(String emailaddress) {
		this.emailaddress = emailaddress;
	}

	public String getEmailaddress() {
		return emailaddress;
	}

	public String toString() {
		return name + " | " + emailaddress;
	}
	
	public abstract AbstractAddress clone();
	
	public void setDirty(boolean flag) {
		this.dirty= flag;
	}
	
	public boolean isDirty(){
		return dirty;
	}
	
}
